home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!howa
- From: howa@netcom.com (Howard N. Egan)
- Subject: Need help getting true HEAP available, BC45/dpmi
- Message-ID: <howaDnpC39.GAz@netcom.com>
- Keywords: heap, getFreeSpace
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- Date: Sun, 3 Mar 1996 17:18:45 GMT
- Sender: howa@netcom7.netcom.com
-
- I am writing a DOS DPMI application with BC 4.52 and am experiencing
- some grief trying to establish whether or not I have a memory leak or not.
- Since heapwalk() is not available in DPMI, (presumably because
- struct heapinfo is not available in that mode) I am forced to use the
- windows function GetFreeSpace(), which is available with DOS Powerpack.
-
- The problem is that it only seems to know about 4096 byte chunks, so when
- memory gets very fragmented, the total available space becomes smaller
- and smaller according to GetFreeSpace(). Is there any code out there that
- does the same thing as heapwalk(), but works in DPMI? Another question,
- is there anything similar to code guard available for DOS? Is there a better
- heap management library out there that replaces Borland's?
-
-
-